const mgs = require('mongoose')

const schema = new mgs.Schema({
    class: { type: mgs.SchemaTypes.ObjectId, ref: 'Class', required: true },
    student: { type: mgs.SchemaTypes.ObjectId, ref: 'Student', required: true },
    student2: { type: mgs.SchemaTypes.ObjectId, ref: 'Student' },
    student3: { type: mgs.SchemaTypes.ObjectId, ref: 'Student' },
    student4: { type: mgs.SchemaTypes.ObjectId, ref: 'Student' },
    sport: { type: mgs.SchemaTypes.ObjectId, ref: 'SportItem', required: true },
    score: { type: Number },
    jf: { type: Number },
    peopleLimit: { type: String },
    zuci: { type: Number },
    daoci: { type: Number }

})

module.exports = mgs.model('Apply', schema)